﻿#region Imports
using System.ComponentModel;
using CommonUtilities.Attributes;
#endregion

namespace EntertainmentManager.Models
{
    /// <summary>
    /// Specifies if details are expanded in Hierarchical view
    /// </summary>
    public class UIToggleNotifier
    {
        #region Properties
        /// <summary>
        /// Sort index of records
        /// </summary>
        [Description("Sorting index")]
        [DisplayName("#")]
        [Sortable]
        [SortIndex(-1)]
        public int Sort { get; set; }

        /// <summary>
        /// Specifies if details are expanded in Hierarchical view
        /// </summary>
        [Browsable(false)]
        public bool IsExpanded { get; set; }
        #endregion Properties

        #region Constructors
        /// <summary>
        /// Initializes a new default instance of <code>EntertainmentManager.Models.UIToggleNotifier</code>
        /// </summary>
        public UIToggleNotifier()
        {
            IsExpanded = false;
        }
        #endregion Constructors
    }
}
